Drupal 7 Module Development by Unknown

Drupal 7 Module Development by Unknown

Author:Unknown
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


Like most "info hooks", this function returns a large definition array, defining one or more fields. Also as we would expect, there is a corresponding hook_field_info_alter() hook. In our case, we just have the one called dimensions. Let's look at each property in turn:

label and description specify the human-readable name and explanation of this field.

settings defines an array of configuration options for the field and their default values. These settings are fixed and after we create an instance of a field cannot be changed, so use with caution. Generally you only want field settings if changing the setting would affect how data gets saved.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.